home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
softwareupdate
/
system
/
amigados
/
amigadoslibrary
/
findarg.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-10-10
|
796b
|
32 lines
/* FindArg.c V1.0 93-03-09 */
/* ROM library: "dos.library/FindArg", (V36+) */
/* Copyright 1993, Anders Bjerin, Amiga C Club */
#include <dos/dos.h>
#include <dos/rdargs.h>
#include <clib/dos_protos.h>
#include <stdio.h>
#include <stdlib.h>
/* The command line template we will examine: */
#define MY_COMMAND_LINE_TEMPLATE "SoundFile/A,V=Volume/K/N,F=Filter/S"
UBYTE *version = "$VER: FindArg V1.0";
int main( int argc, char *argv[] );
int main( int argc, char *argv[] )
{
int template_position;
/* Print the position of the command template named "Volume": */
/* (It is the second command template = position 1.) */
template_position = FindArg( MY_COMMAND_LINE_TEMPLATE, "Volume" );
printf( "Position: %d\n", template_position );
exit( 0 );
}